//
//  THFeedBackViewController.m
//  TaiHao
//
//  Created by rzm on 16/5/31.
//  Copyright © 2016年 rzm. All rights reserved.
//

#import "SampuxFBackViewController.h"
#import "SampuxFeedBackView.h"

@implementation SampuxFBackViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
//    [self createBackBarButtonItem];
//    self.navigationItem.title = @"用户反馈";
//    [self.navigationController.navigationBar setBackgroundImage:imageNamed(@"nav") forBarMetrics:UIBarMetricsDefault];
    [self.navigationItem setHidesBackButton:YES];

    SampuxFeedBackView *fBackView = [[SampuxFeedBackView alloc]initWithFrame:CGRectMake(0, 0, self.view.width, self.view.height )];
    [self.view addSubview:fBackView];
    fBackView.popBlock = ^{
        dispatch_async(dispatch_get_main_queue(), ^{
            [self.navigationController popToRootViewControllerAnimated:YES];
        });
    };
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:YES];
    SampuxCustomNavController *nav = (SampuxCustomNavController *)self.navigationController;
    nav.titleStr = @"用户反馈";
}

@end
